﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ninject.Core;
using Hotnet.Dal.NSDalCommon;
using Hotnet.Entity;
using Hotnet.Entity.Enum;

namespace Hotnet.Biz.NSBizCommon
{
	public class BizSourceFrom : BaseBiz<SourceFrom>
	{
		private static DalSourceFrom db = new DalSourceFrom();
        public BizSourceFrom() : base(db)
        {
        }


        public SourceFrom[] List(EnumSystemCategory netType)
        {
			var sourceForms = db.ListBy(sf => sf.NetType == (int)netType );
            return sourceForms;
        }

		public SourceFrom[] ListVideoShowBignet()
		{
			var sourceForms = db.ListBy(sf => sf.NetType == (int)EnumSystemCategory.视频 && sf.Mark == 1);
			return sourceForms;
		}
    }
}
